<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
foo<div></div><!-- bar -->
baz
<div id="log"></div>
<script>
test(function() {
    document.designMode = 'on';
    document.execCommand('selectall');
    document.execCommand('FormatBlock', false, 'h1');
}, 'position-at-middle-of-editing-ignore-content');
</script>
